package cn.tedu.car.backend.vehicle.mapper;

import cn.tedu.car.backend.vehicle.pojo.dto.StationInfoQuery;
import cn.tedu.car.backend.vehicle.pojo.dto.VehicleQuery;
import cn.tedu.car.backend.vehicle.pojo.entity.Vehicle;
import cn.tedu.car.backend.vehicle.pojo.vo.StationInfoVO;
import cn.tedu.car.backend.vehicle.pojo.vo.VehicleVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface VehicleMapper {
    List<VehicleVO> selectVehicle(VehicleQuery vehicleQuery);

    void insert(Vehicle vehicle);

    void update(Vehicle vehicle);

    void deleteById(Long id);

    Integer selectVehicleCount(VehicleQuery vehicleQuery);

    List<StationInfoVO> selectStation(StationInfoQuery stationInfoQuery);
}
